import request from '@/utils/request.js'

//通知公告列表查询
export const ProfessionListService = () => {
    return request.get('/Profession')
}

//添加通知公告
export const ProfessionAddService = (ProfessionData) => {
    return request.post('/Profession', ProfessionData)
}

//修改通知公告
export const ProfessionUpdateService = (ProfessionData) => {
    return request.put('/Profession', ProfessionData)
}

//删除通知公告
export const ProfessionDeleteService = (id) => {
    return request.delete('/Profession?id=' + id)
}

//修改通知状态
export const ProfessionUpdateStatusService = (id) => {
    return request.put('/Profession/status', id)
}

//分页获取
export const ProfessionListByPageService = (currentPage, pageSize) => {
    return request.get('/Profession', {
        params: {
            page: currentPage,
            size: pageSize
        }
    })
}